home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / g_duke / mapprt.zip / MGRMAP.H < prev   
C/C++ Source or Header  |  1996-06-16  |  2KB  |  68 lines

  1. /*
  2.  
  3.    MGRMAP.H
  4.  
  5.    Oliver Kraus
  6.    kraus@lrs.e-technik.uni-erlangen.de
  7.  
  8. */
  9.  
  10. #ifndef _MGR_MAP_H
  11. #define _MGR_MAP_H
  12.  
  13. #include "mgr.h"
  14. #include "map.h"
  15.  
  16. struct _mgrmap_struct
  17. {
  18.    map_type map;
  19.    mgr_type mgr;
  20.    long dpi;
  21.    long dest_width;
  22.    long dest_height;
  23.    long curr_width;
  24.    long curr_height;
  25.    long x_offset;
  26.    long x_skip;
  27.    long y_offset;
  28.    long ratio_num;
  29.    long ratio_den;
  30.  
  31.    long tf_height;
  32.    long lf_height;
  33.    long idf_height;
  34.  
  35.    long upper_skip;
  36.    long lower_skip;
  37.    long legend_cols;
  38.    long legend_rows;
  39.    long legend_cnt;
  40.    long legend_f1_size;
  41.    long legend_f2_size;
  42.    long legend_f3_size;
  43.  
  44.    int  is_monster;
  45.    int  is_card;
  46. };
  47. typedef struct _mgrmap_struct mgrmap_struct;
  48. typedef struct _mgrmap_struct *mgrmap_type;
  49.  
  50.  
  51. #define mgrmap_SetMonster(mm) ((mm)->is_monster = 1, map_SetMonster(mm->map))
  52. #define mgrmap_ClrMonster(mm) ((mm)->is_monster = 0, map_ClrMonster(mm->map))
  53. #define mgrmap_SetCard(mm) ((mm)->is_card = 1, map_SetCard(mm->map))
  54. #define mgrmap_ClrCard(mm) ((mm)->is_card = 0, map_ClrCard(mm->map))
  55.  
  56. mgrmap_type mgrmap_Open(char *fname, FILE *fp);
  57. void mgrmap_Close(mgrmap_type mm);
  58. void mgrmap_SetDestSize(mgrmap_type mm, long dest_width, long dest_height);
  59. void mgrmap_SetFontHeight(mgrmap_type mm, long idf_height, long tf_height, long lf_height);
  60. #define mgrmap_SetDPI(mm,_dpi) ((mm)->dpi=(_dpi))
  61. int mgrmap_AllocMGR(mgrmap_type mm);
  62. void mgrmap_DrawTitle(mgrmap_type mm, char *title);
  63. void mgrmap_DrawLegend(mgrmap_type mm);
  64. void mgrmap_DrawLines(mgrmap_type mm);
  65. void mgrmap_DrawSprites(mgrmap_type mm);
  66.  
  67. #endif
  68.